package com.coastline.fruit.usercenter.service.ansy;

import com.coastline.fruit.usercenter.entity.dao.UserDao;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Coastline
 * @date 2025/1/25 22:27
 */
@Slf4j
public class UserThread implements Runnable{

    public UserDao userDao;

    public UserThread(UserDao userDao){
        this.userDao = userDao;
    }
    /**
     * When an object implementing interface {@code Runnable} is used
     * to create a thread, starting the thread causes the object's
     * {@code run} method to be called in that separately executing
     * thread.
     * <p>
     * The general contract of the method {@code run} is that it may
     * take any action whatsoever.
     *
     * @see Thread#run()
     */
    @Override
    public void run() {
        // 执行逻辑
        System.out.println("userThread");
    }
}
